/**
 * 宿主接口调用错误基类
 * @param {string} message 
 * @param {*} extra 
 */
export function ShellError(message, extra) {
    this.name = 'ShellError'
    this.message = message || '调用微信接口出错'
    this.stack = (new Error()).stack
    this.extra = extra
}
ShellError.prototype = Object.create(Error.prototype)
ShellError.prototype.constructor = ShellError